####train
unset CUDA_VISIBLE_DEVICES
python -m paddle.distributed.launch --gpus "0" train.py \
    --dataset_dir "./dataset" \
    --device "gpu" \
    --max_seq_length 1024 \
    --model_name "ernie-3.0-medium-zh" \
    --batch_size 16 \
    --learning_rate 0.00005 \
    --early_stop \
    --epochs 30 \
    --seed 42 \
    --train_file "train.txt" \
    --dev_file "dev.txt" \
    --label_file "label.txt"

####evaluate
unset CUDA_VISIBLE_DEVICES
python -m paddle.distributed.launch --gpus "0" evaluate.py \
    --device "gpu" \
    --max_seq_length 1024 \
    --batch_size 16 \
    --dataset_dir "./dataset" \
    --params_path "./checkpoint" \
    --dev_file "test.txt" \
    --label_file "label.txt" \
    --bad_case_file "bad_case.txt" 

####predict 
####You need predict.txt under your dataset file
unset CUDA_VISIBLE_DEVICES
python -m paddle.distributed.launch --gpus "0" predict.py \
    --device "gpu" \
    --dataset_dir "./dataset" \
    --output_file "./dataset/predict_out.txt" \
    --params_path "./checkpoint/" \
    --max_seq_length 1024 \
    --batch_size 16 \
    --data_file "predict.txt" \
    --label_file "label.txt"


####Model Introduction
checkpoint/
├── model.config.json # 模型配置文件
├── model_state.pdparams # 模型参数文件
├── tokenizer_config.json # 分词器配置文件
├── vocab.txt
└── ...